		<div id="content">
			<div class="c1">
				<div class="controls">
					<?php include('topnav.php'); ?>
					<?php include(APPPATH.'/views/profile_box.php'); ?>
					
				</div>
				<div class="tabs">
					<div id="tab-1" class="tab">
						<article>
            <?php include(APPPATH.'/views/noticeMsg.php') ?>
							<div class="text-section">
								<h1>所有消息</h1>
								<p>显示所有消息</p>
							</div>
							<br>
                            <form action="/phpdb/index.php/msgpage/all" method="post">
							<div class="threebutton">  		
								<button name="delete" class="large button orange">删除信息</button>
							</div>       
							<br>
							<table class="admintable" width="100%">
								<tr>
								<th class="adminth">
								<?php 
									echo '<input type="button" class="small button blue" value="全选/全不选" onclick="selectAll();"/>';									
								?>
								</th>
								<th class="adminth">发送者</th>
								<th class="adminth">内容</th>
                                <th class="adminth">时间</th>							
								</tr>
								
                                <?php 
								
								foreach($msgs as $items)
								{
									echo '<tr>';
									echo '<td class="admincls0">';
									echo '<input type="checkbox" name="itemno[]" value='.$items['id'].' />';
									echo '</td>';
									
									echo '<td class="admincls0">'.$items['from'].'</td>';
									echo '<td class="admincls0">'.$items['content'].'</td>';
									echo '<td class="admincls0">'.$items['time'].'</td>';
									echo '</tr>';
								}
                                ?>								
							</table>
                            </form>
						</article>
						</article>
					</div>
				</div>
			</div>
		</div>
        
				<script>
		function selectAll() //全选 
		{ 	 
			var objs = document.getElementsByName('delete[]'); 
			var i; 
			for(i = 0; i < objs.length; i++) 
			{ 
				if(objs[i].type == "checkbox") 
				{ 
					if (objs[i].checked == true)
					objs[i].checked = false; 
					else if (objs[i].checked == false)
					objs[i].checked = true; 
				}	 
			} 
		}
		
		</script>
